<%@ page language="java" import="java.util.*,com.gdpu.project.vo.*,com.gdpu.project.vo.News" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	List<News> newslist = (List)request.getAttribute("newslist"); 
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>新闻列表</title>
<base href="<%=basePath%>">
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.tabfont01 {	
	font-family: "宋体";
	font-size: 9px;
	color: #555555;
	text-decoration: none;
	text-align: center;
}
.font051 {font-family: "宋体";
	font-size: 12px;
	color: #333333;
	text-decoration: none;
	line-height: 20px;
}
.font201 {font-family: "宋体";
	font-size: 12px;
	color: #FF0000;
	text-decoration: none;
}
.button {
	font-family: "宋体";
	font-size: 14px;
	height: 37px;
}
html { overflow-x: auto; overflow-y: auto; border:0;} 
-->
</style>

<link href="<%=basePath%>/admin/css/css.css" rel="stylesheet" type="text/css" />
<script type="text/JavaScript">

</script>
<link href="<%=basePath%>/admin/css/style.css" rel="stylesheet" type="text/css" />
</head>
<SCRIPT language=JavaScript>
function sousuo(){
	window.open("gaojisousuo.htm","","depended=0,alwaysRaised=1,width=800,height=510,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0");
}
function selectAll(){
	var obj = document.fom.elements;
	for (var i=0;i<obj.length;i++){
		if (obj[i].name == "delid"){
			obj[i].checked = true;
		}
	}
}

function unselectAll(){
	var obj = document.fom.elements;
	for (var i=0;i<obj.length;i++){
		if (obj[i].name == "delid"){
			if (obj[i].checked==true) obj[i].checked = false;
			else obj[i].checked = true;
		}
	}
}

function link(){
    document.getElementById("fom").action="addrenwu.htm";
   document.getElementById("fom").submit();
}

</SCRIPT>

<body>
<td valign="top" style="padding-top:3px">
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td height="10"></td>
	</tr>
	<table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/tiao_02.jpg">
      <tr>
        <td width="48%" style="padding-left:450px" ><B>新闻快讯</B></td>
      </tr>
    </table><div style="height:5px"></div>
    <hr/>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" background="<%=basePath %>teacher/images/tiao_02.jpg">
      <tbody><tr>
        <td width="12" align="left"><img src="<%=basePath %>teacher/images/tiao_01.jpg" width="12" height="26" alt=""></td>
        <td width="40%" style="padding-left:10px"><span class="w4">新闻</span><span class="w5">动态</span></td>
        <td width="40%" align="center" style="padding-right:5px" class="w6">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 日期</td>
        <td width="9" align="right"><img src="<%=basePath %>teacher/images/tiao_04.jpg" width="9" height="26" alt=""></td>
      </tr>
      </tbody>
    </table>
    
    
	<%
		Iterator<News> iterator = newslist.iterator();
		while(iterator.hasNext()){
			News n = iterator.next();
	 %>
		<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0" class="table3">
	        <tr>
	          <td width="85%" height="28" ><a href="<%=basePath %>lookNews.action?newsId=<%=n.getNewsId()%>"><span class="STYLE1">●　　　</span><%=n.getNewsTitle() %></a></td>
	
	          <td width="15%" class="w2" ><%=n.getFbTime() %></td>
	        </tr>
	  	</table>
	  	
	  <%} %>	
    </td>

<div align="center">
<h3 style="color:#FF0000">${message}</h3>
</div>
</body>
</html>
